<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title></title>
</head>
<body>
<script type="text/javascript">
	/*查询对象属性*/
	const obj1={
		uname:"陶品奇",
		age:22,
		getName(name){
          return name
		}
	}
    console.log(obj1.uname,obj1.age,obj1.getName("马斯克"))
    console.log(obj1["uname"],obj1["age"],obj1["getName"]("马云"))

    /*修改对象属性*/
    const ob2={
		uname:"陶品奇",
		age:22,
		getName(name){
          return name
		}
	}
   ob2.age=23
  console.log(obj2)


  /*增加对象属性*/
  	const obj4={
		uname:"陶品奇",
		age:22,
		getName(name){
          return name
		}
	}
  obj4.address="湖南省"
  console.log(obj4)

	/*删除对象属性*/
  const obj3={
		uname:"陶品奇",
		age:22,
		getName(name){
          return name
		}
	}
  delete obj3.age
  console.log(obj3)
</script>
</body>
</html>